#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a = 0;
	char arr[10000] = { 0 };
	scanf("%s", arr);
	a=strlen(arr);
	int i = 0;
	int left = 0;
	int right = a - 1;
	int tem = 0;
	for (i = 0; i < a / 2; i++)
	{
		tem = arr[i];
		arr[left] = arr[right];
		arr[right] = tem;
		left++;
		right--;
	}
	printf("%s", arr);
	return 0;
}